//
//  NSString+Ext.h
//  WanLian
//
//  Created by 123456 on 2018/12/9.
//  Copyright © 2018 wanlian. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Ext)
/** 检测沙盒路径是否发生改变，如果改变则替换 */
+ (NSURL *)createRightDocumentFileURL:(NSURL *)oriURL;
+ (NSString *)formateSizeWithBytes:(unsigned long long)fileTotalBytes;

+(NSInteger)getNowTimestampWithFormater:(NSString *)formater;
+ (NSString *)formateSizeWithKBytes:(unsigned long long)fileTotalBytes;
+(NSString *)timestampSwitchTime:(NSInteger)timestamp andFormatter:(NSString *)format;

+ (NSString *)getNowStrWithFormater:(NSString *)formater;
- (id)jsonObject;

- (NSString *)filterExtension;
@end

NS_ASSUME_NONNULL_END
